package com.shop.service;

import com.shop.pojo.Auction;
import com.shop.pojo.AuctionCustomer;
import com.shop.pojo.Auctionrecord;

import java.util.List;

public interface AuctionService {
    public List<Auction> findAuctionList(Auction auction);
    //根据auctionid查询拍卖信息
    Auction  selectAuctionAndRecorList(String auctionId);
    //实现竞拍功能
    void saveAuctionRecord(Auctionrecord auctionrecord) throws Exception;

    //查询已经拍卖结束的商品
    public List<AuctionCustomer> selectAuctionEndTime();

    //查询正在拍卖的商品
    public List<Auction> selectAuctionNoEndTime();

    //添加新的拍卖
    void publishAuctions(Auction auction);
}
